package com.we823.project.controller.repo;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.we823.project.core.web.WebConstants;
import com.we823.project.repository.service.repo.MaterialStockInService;

@Controller
@RequestMapping(WebConstants.REPO_STOCK)
public class StockController {

	private String baseUrl = WebConstants.REPO_STOCK_TEMPLATE;
	
	@Autowired
	private MaterialStockInService materialStockInService;
	
	
	@RequestMapping("index")
	public String index(HttpServletRequest request,Model model){
		
		return baseUrl + "index";
	}
	
	@RequestMapping("stock_in")
	public String stockIn(HttpServletRequest request,Model model){
		
		return baseUrl + "stock_in";
	}
	
	public String stockOut(HttpServletRequest request,Model model){
		
		return baseUrl + "stock_out";
	}

	public MaterialStockInService getMaterialStockInService() {
		return materialStockInService;
	}

	public void setMaterialStockInService(MaterialStockInService materialStockInService) {
		this.materialStockInService = materialStockInService;
	}
	
	
}
